<?php
class Model_Categories extends Model{
	public $table="categories";
	
	public function insert_product($data){
		$this->insert($this->table,$data);
	}
	
	public function listall(){
		$this->select("id,category");
		$this->getdata($this->table);
		return $this->result_array();
	}
	
}